import * as THREE from "three";
import { GLTFLoader } from "three/examples/jsm/loaders/GLTFLoader.js";
// import { animateRotation, stopRotation } from "../antimations/animations";
import { animateRotation, createFixedLiquidLevel, stopRotation, removeLiquidLevel, animateColordefaultrun } from "../antimations/animations";
import {  Visible,tds, scale, ADS,T3,T4,T7K,T10K } from "../indexZJ";

const modelmountain = new THREE.Group();
const manager = new THREE.LoadingManager();
const loader = new GLTFLoader(manager);
let mixer: THREE.AnimationMixer;
// 加载模型
loader.load(
    "/3D/test/mountain.glb",
    (gltf) => {
        const scene = gltf.scene;
        modelmountain.add(scene);
        mixer = new THREE.AnimationMixer(scene);


    },
    (xhr) => {
        // console.log((xhr.loaded / xhr.total) * 100 + "% loaded");
    },
    (error) => {
        console.error("An error occurred:", error);
    }
);


export default modelmountain;